Crate lib_ruby_parser_bindings[−][src]
Expand description
lib-ruby-parser-bindings
This crate contains shared scripts to build bindings to lib-ruby-parser
.
Examples
use lib_ruby_parser_bindings::{generate, Options};
let options = Options {
pre_code: "#include \"stubs.h\"",
fn_attributes: "__attribute__((always_inline))",
..Default::default()
};
let contents = generate(&options);
std::fs::write("codegen/bindings.h", contents).unwrap();
Modules
A mod with utility methods to build implementation of your bindings
Structs
A struct with codegen options
Constants
Global namespace of all funcionns that are used in bindings
Functions
Generates a header file for your bindings